package org.cid54.jshopper.service;

import java.util.List;
import org.cid54.jshopper.model.User;
import org.cid54.jshopper.model.UserGroup;

/**
 *
 * @author fgo
 */
public interface UserAndGroupService {

    UserGroup getUserGroupByName(String name);
    
    List<User> getUsersByUserGroup(UserGroup userGroup);
    
    List<User> getUsersByUserGroupName(String userGroupName);

    User getUserByUserName(String userName);

    boolean authenticate(String userName, String passwd);

    List<UserGroup> getUserGroupsByUserName(String userName);

    List<UserGroup> getUserGroupsByUserId(long userId);

    String getUserNameById(long userId);

    User getUserByMobileGuid(String guid);

}
